package com.ssm.reader.service;

import com.ssm.reader.entity.Evaluation;
import com.ssm.reader.entity.Member;
import com.ssm.reader.entity.MemberReadState;

public interface MemberService {
    //创建新会员
    public Member createMember(String username,String password,String nickname);

    public Member checkLogin(String username,String password);

    public MemberReadState selectMemberReadState(Long memberId,Long bookId);

    //更新会员状态
    public MemberReadState updateMemberReadState(Long memberId,Long booId,Integer readState);

    //写短评
    public Evaluation evaluate(Long memberId, Long bookId, Integer score, String content);

    //点赞
    public Evaluation enjoy(Long evaluationId);

}
